
public class Bus extends Car{
	private static final int MIN_PLACE_FOR_LUGGAGE = 0;
	private static final int MIN_NUM_OF_SEATS = 1;
	private int numberOfSeats;
	private double placeForLuggage;
	
	Bus(int numOfSeats, double plaeForLuggage){
		setNumberOfSeats(numOfSeats);
		setPlaceForLuggage(plaeForLuggage);
	}
	
	public int getNumberOfSeats() {
		return numberOfSeats;
	}
	public void setNumberOfSeats(int numberOfSeats) {
		if(numberOfSeats > MIN_NUM_OF_SEATS)
		this.numberOfSeats = numberOfSeats;
	}
	public double getPlaceForLuggage() {
		return placeForLuggage;
	}
	public void setPlaceForLuggage(double placeForLuggage) {
		if(placeForLuggage>MIN_PLACE_FOR_LUGGAGE)
		this.placeForLuggage = placeForLuggage;
	}
	
	void transport(){
		System.out.println("Load the bus and we are about to go!");
	}
	
	
}
